package com.mayikt.product.api.service;


import com.fary.base.BaseResponse;
import com.fary.product.output.dto.ProductOutputDto;
import org.springframework.data.domain.Pageable;
import org.springframework.data.web.PageableDefault;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;


/**
 *
 *  商品搜索服务接口
 */
public interface ProductSearchService {

	@GetMapping("/search")
	BaseResponse<List<ProductOutputDto>> search(String name, @PageableDefault(page = 0, value = 10) Pageable pageable);

}
